package com.bop.dehong.http.model;

import java.lang.reflect.Type;

import com.base.dehong.http.HttpRequest;
import com.base.dehong.http.RequestCallBack;
import com.bop.dehong.base.DeHongApp;
import com.bop.dehong.config.Config;
import com.bop.dehong.info.EmptyInfo;
import com.google.gson.reflect.TypeToken;

import android.app.Activity;

/**
 * @author YeFengyun
 * 判断身份证号码是否已注册
 */
public class JudgeIdCardModel extends HttpRequest<EmptyInfo>{

	public JudgeIdCardModel(Activity activity, RequestCallBack<EmptyInfo> callback) {
		super(activity, callback);
		// TODO Auto-generated constructor stub
	}
	
	public void doNet(String uid, String idcard) {
		mPostValues.put("a", "idcard");
		mPostValues.put("m", "Public");
		mPostValues.put("idcard", idcard);
		mPostValues.put("uid", uid);
		requestByPost();
	}

	@Override
	public String getURL() {
		return Config.getIP() + Config.judgeIdCard;
	}

	@Override
	public Type getType() {
		return new TypeToken<EmptyInfo>() {}.getType();
	}

	@Override
	public Class<EmptyInfo> getClazz()
	{
		return EmptyInfo.class;
	}

}

